package com.zyasdk.service;

import android.content.Context;
import android.os.Handler;
import android.util.Log;

import org.apache.http.NameValuePair;

import java.util.List;

public class CommonServer extends BaseService {
	public CommonServer(Context context) {
		super(context);
	}
	
	public void connectServer(List<NameValuePair> params,Handler handler,Object object){
		if(null == params) return;
		if(null == handler) {
			ServiceTask.addTask(GetAPIUrl("UnifiedAccess"), params);
		}else {
			Log.i("result", "connectServer + CommonServer");
			ServiceTask.addTask(GetAPIUrl("UnifiedAccess"), params,2,handler,object);
		}
	}
}
